﻿using Common.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StatsData.Data.Entity
{
    public class t_wip_sn_wait_test_statis_record : EntityBase
    {
        [EntityFieldIndex]
        public DateTime time { get; set; }

        [EntityFieldLength(80)]
        public string statis_key { get; set; }

        [EntityFieldIndex]
        [EntityFieldLength(30)]
        public string work_code { get; set; }

        [EntityFieldIndex]
        [EntityFieldLength(50)]
        public string product_code { get; set; }

        [EntityFieldIndex]
        [EntityFieldLength(60)]
        public string line_code { get; set; }

        [EntityFieldLength(30)]
        public string ext_org_code { get; set; }

        [EntityFieldLength(60)]
        public string workstage_name { get; set; }

        public string workstage_id { get; set; }

        public string procedure_id { get; set; }


        [EntityFieldLength(60)]
        public string procedure_name { get; set; }

        /// <summary>
        /// SN 数量
        /// </summary>
        public decimal sn_qty { get; set; }

        public decimal rework_sn_qty { get; set; }

        /// <summary>
        /// 总测试数量
        /// </summary>
        public decimal total_test_qty { get; set; }

        /// <summary>
        /// 总测试时长
        /// 单位S
        /// </summary>
        public decimal test_time { get; set; }

        [EntityFieldLength(2000)]
        public string sn_codes { get; set; }

        [EntityFieldLength(2000)]
        public string rework_sn_codes { get; set; }
    }
}
